import request from '@/service/index.js'

export const addNewcomerProduct = (data) => {
  return request.post('/newcomer/area/add/product', data)
}

export const queryNewcomerProductList = (keyword, page, pageSize) => {
  return request.get('/newcomer/area/list', {
    params: {
      keyword,
      page,
      pageSize,
    },
  })
}
export const deleteNewcomerProduct = (productId) => {
  return request.delete(`/newcomer/area/delete/product`, {
    params: {
      productId,
    },
  })
}
export const updateNewcomerProduct = (data) => {
  return request.put(`/newcomer/area/update/product`, data)
}
